import request from '@/utils/request'

// 登录接口
export function reqLogin(data) {
  return request({
    method: 'post',
    url: 'sys/login',
    data
  })
}
// 获取个人资料
export function reqGetUserInfo() {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}
// 获取员工基本信息
export const reqGetUserDetailById = id =>
  request({
    method: 'get',
    url: `/sys/user/${id}`
  })

// 获取员工负责人列表
export const reqGetEmployeeSimple = () => request({ url: '/sys/user/simple' })
//  为员工分配角色
export const reqAssignRoles = data => request({
  method: 'put',
  url: '/sys/user/assignRoles',
  data
})

